import Vue from 'vue'
import App from './App'
//导入路由
import router from './router'
//导入element-ui
import ElementUI from 'element-ui';
//需要安装sass编译器
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios';
import VueAxios from 'vue-axios';
axios.defaults.baseURL = '/api';

 Vue.prototype.$http = axios
Vue.config.productionTip = false;
Vue.use(router);
Vue.use(ElementUI);
Vue.use(VueAxios,axios);
Vue.prototype.HOST = '/api'


new Vue({
  el: '#app',
  router,
  render: h => h(App)
})
